import re

f=open("html1.html", "r",encoding="utf-8")
str1 = f.read()
f.close()
# 正则表达式提取图片路径
img = re.findall(r'<img\s*src="([^"]+\.jpg)"', str1.replace('\n', ''))
imgurl=[]
for i in img:
    imgurl.append("https://www.tute.edu.cn/" +i)
print(imgurl)
